#ifndef LOG_H_
#define LOG_H_

#include <iostream>
#include <fstream>

namespace log
{
#define LOG_FILE "logfile.txt"

extern std::ofstream ofs;
extern void log_open();
extern void log_close();
}

#define FLOG(x) {log::ofs << __FILE__ << ":" << __FUNCTION__ << "(" << __LINE__ << "): " << x << std::endl;}

#endif /* LOG_H_ */
